package com.aaa.mks;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.transaction.annotation.EnableTransactionManagement;
import springfox.documentation.swagger2.annotations.EnableSwagger2;

/**
 * @fileName:MarketApp
 * @description:
 * @author:忆尘
 * @createTime:2020/11/24 13:14
 * @version:1.0.0
 */

@SpringBootApplication
@MapperScan("com.aaa.mks.dao")
@EnableEurekaClient //开启Eureka客户端 该注解只对注册中心是Eureka有效
//@EnableDiscoveryClient  //开启发现客户端  该注解对任意注册中心有效
@EnableTransactionManagement  //开启事务管理
@EnableSwagger2
public class MarketApp {
    public static void main(String[] args) {
        SpringApplication.run(MarketApp.class, args);
    }
}
